home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / ilisp / Makefile.z / Makefile
Encoding:
Makefile  |  1998-05-21  |  3.6 KB  |  121 lines

  1. # -*- Mode: Makefile -*-
  2.  
  3. # Makefile --
  4. # This file is part of ILISP.
  5. # Version: 5.8
  6. #
  7. # Copyright (C) 1990, 1991, 1992, 1993 Chris McConnell
  8. #               1993, 1994 Ivan Vasquez
  9. #               1994, 1995, 1996 Marco Antoniotti and Rick Busdiecker
  10. #               1996 Marco Antoniotti and Rick Campbell
  11. #
  12. # Send mail to 'ilisp-request@naggum.no' to be included in the
  13. # ILISP mailing list.
  14.  
  15. # Note: this makefile assumes GNU make
  16.  
  17. # Updated for XEmacs autoloads builds, but unused at present since no
  18. #  autoloads are generated, and this package hasn't been customized.
  19.  
  20. #==============================================================================
  21. # Various Variables
  22.  
  23. Version = 5.8
  24.  
  25. # Use whichever you like most
  26. #EMACS = xemacs
  27. #EMACS = /usr/local/bin/emacs
  28. EMACS = emacs
  29.  
  30. # The SHELL variable is used only for making the distribution.
  31. #SHELL = /bin/csh
  32. # Tsk, tsk, Though shalt not use csh in distributed scripts.
  33. SHELL = /bin/sh
  34.  
  35. # These are used mostly for packaging the distribution
  36. Ilisp_src_dir = $(shell pwd)
  37. Ilisp_tar_dir = ilisp-$(Version)
  38.  
  39. OtherFiles = README         \
  40.              HISTORY        \
  41.              Makefile       \
  42.              ilisp.emacs    \
  43.              INSTALLATION   \
  44.              COPYING        \
  45.              GETTING-ILISP  \
  46.              Welcome
  47.  
  48. DocFiles = ilisp.texi
  49.  
  50. LoadFiles = ilisp-def.elc ilisp-el.elc ilisp-sym.elc \
  51.  ilisp-inp.elc ilisp-ind.elc ilisp-prc.elc ilisp-val.elc ilisp-out.elc \
  52.  ilisp-mov.elc ilisp-key.elc ilisp-prn.elc ilisp-low.elc ilisp-doc.elc \
  53.  ilisp-ext.elc ilisp-mod.elc ilisp-dia.elc ilisp-cmt.elc ilisp-rng.elc \
  54.  ilisp-hnd.elc ilisp-utl.elc ilisp-cmp.elc ilisp-kil.elc ilisp-snd.elc \
  55.  ilisp-xfr.elc ilisp-hi.elc ilisp-aut.elc ilisp-cl.elc ilisp-cmu.elc \
  56.  ilisp-acl.elc ilisp-kcl.elc ilisp-luc.elc ilisp-sch.elc ilisp-hlw.elc \
  57.  ilisp-xls.elc
  58.  
  59.  
  60. #==============================================================================
  61. # Rules
  62.  
  63. compile:
  64.     $(EMACS) -batch -l ilisp-mak.el
  65.  
  66. elc: $(LoadFiles) $(XEmacsELC)
  67.  
  68. $(LoadFiles) :
  69.     $(EMACS) -batch -l ilisp-mak.el
  70.  
  71. tags:
  72.     etags *.el
  73.  
  74. clean: 
  75.     $(RM) *.elc
  76.  
  77. loadfile:
  78.     touch ilisp-all.elc
  79.     cat $(LoadFiles) > ilisp-all.elc
  80.     rm $(LoadFiles)
  81. # Note that the redirection is done by a Bourne Shell.
  82.  
  83. compress:
  84.     gzip *.el $(OtherFiles) $(DocFiles)
  85.  
  86. #==============================================================================
  87. # The following targets are used only to create a distribution file.
  88.  
  89. dist: tarring dist_compressing
  90.  
  91. tarring:
  92.     (cd $(Ilisp_src_dir)/..;                                        \
  93.          if ( $(notdir $(Ilisp_src_dir)) != $(Ilisp_tar_dir) )          \
  94.             ln -s $(notdir $(Ilisp_src_dir)) $(Ilisp_tar_dir) ;         \
  95.          tar cvf $(Ilisp_tar_dir).tar                                   \
  96.             $(patsubst %,$(Ilisp_tar_dir)/%,$(OtherFiles))              \
  97.             $(Ilisp_tar_dir)/*.el                                       \
  98.             $(Ilisp_tar_dir)/*.lisp                                     \
  99.             $(patsubst %,$(Ilisp_tar_dir)/%,$(DocFiles))                \
  100.             $(Ilisp_tar_dir)/*.mail)
  101.  
  102. dist_compressing:
  103.     (cd $(Ilisp_src_dir)/.. ; gzip $(Ilisp_tar_dir).tar)
  104.  
  105. uuencoding: ../$(Ilisp_tar_dir).tar.gz
  106.     (cd $(Ilisp_src_dir)/.. ;                                           \
  107.          uuencode $(Ilisp_tar_dir).tar.gz $(Ilisp_tar_dir).tar.gz > il.uue)
  108.  
  109. #autoloads: auto-autoloads.el
  110.  
  111. #custom-load.elc: custom-load.el
  112. #    $(EMACS) -batch -q -no-site-file -f batch-byte-compile $?
  113.  
  114. #auto-autoloads.el: $(LoadFiles:.elc=.el)
  115. #    $(EMACS) -batch -q -no-site-file \
  116. #        -eval '(setq autoload-target-directory "'`pwd`'/")' \
  117. #        -l autoload \
  118. #        -f batch-update-autoloads $?
  119.  
  120. # end of file -- Makefile --
  121.